package org.example.mall.admin.model.dto.manage;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author hzq
 * @date 2021/12/30 21:28
 */
@Data
@ApiModel(value = "RoleMenuDto", description = "角色分配权限")
public class RoleMenuDto {

    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id")
    private Integer roleId;

    @ApiModelProperty("菜单id集合")
    private List<Integer> menuIds;
}
